package com.shaoyu.oauth2.service.impl;

import com.shaoyu.oauth2.dao.UserRepository;
import com.shaoyu.oauth2.entity.SysUser;
import com.shaoyu.oauth2.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Description:
 *
 * @author mac
 * @date 2021/2/26 下午4:38
 * @since JDK 1.8
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserRepository userRepository;

    public SysUser getByUsername(String username) {
        return userRepository.findByUsername(username);
    }
}
